<%@ page language="java" contentType="text/html; charset=utf-8" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>

<h2>회원목록</h2> 	
<c:if test="${fn:length(requestScope.member_list) != 0 }">
	<table width="500" border='1' cellspacing="0">
		<thead>
			<tr>
				<td>ID</td>
				<td>이름</td>
				<td>Email</td>
				<td>가입일</td>
			</tr>
		</thead>
		<tbody>
			<c:forEach items="${requestScope.member_list }" var="member">
				<tr>
					<td>${member.id }</td>
					<td>${member.name}</td>
					<td>${member.email}</td>
					<td><fmt:formatDate value="${member.joinDate}" pattern="yyyy-MM-dd" type="date"/></td>
				</tr> 
			</c:forEach>
		</tbody>
	</table>
</c:if>

<!-- 
< fmt : formatDate />
속성 : value - 변환할 값 (Date)
        type - (DATE || TIME||BOTH) : 변환 대상 선택
        pattern - 변환 할 패턴 지정
        dateStyle, timeStyle - 미리 제공되는 스타일 이용(FULL ｜LONG ｜MEDIUM ｜SHORT ｜DEFAULT)
 -->


